import request from '@/utils/processRequest';

// 获取左侧的菜单
export function getLeftMenu(data) {
  return request({
    url: '/taskLibrary/listProject',
    method: 'post',
    data
  });
}

// 获取项目（任务）详情
export function getProjectDetial(data) {
  return request({
    url: '/taskLibrary/projectDetial',
    method: 'post',
    data
  });
}

// 获取表格的详情
export function getProjectDetialXz(data) {
  return request({
    url: '/taskLibrary/projectDetialXz',
    method: 'post',
    data
  });
}
export function doTask(data) {
  return request({
    url: '/taskLibrary/editTask',
    method: 'post',
    data
  });
}
// 删除文件
export function deleteTaskAnnex(data) {
  return request({
    url: '/taskLibrary/deleteTaskAnnex',
    method: 'post',
    data
  });
}

// 公用接口
export function commonMenthod(url, data) {
  return request({
    url: url,
    method: 'post',
    data
  });
}

